import socket

target_host = "192.168.0.107"
target_port = 9999

#create a socket object
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

#connect server
client.connect((target_host, target_port))

#send some data to server
client.send("this data from tcp_client")

#recieve some data from server
response = client.recv(4096)

print response
